<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<base href="<%=request.getContextPath()%>/">
</head>
<body>
<div style="margin-top: 30px ;margin-left: 50px">
<form action="animal/doadd" method="post" name="Animal">
动物名：<input type="text" name="animalName"/><br/>
重量：&nbsp&nbsp&nbsp<input type="text" name="animalWeight"/><br/>
类型：&nbsp&nbsp&nbsp<select name="type.typeId">
<option>请选择类型</option>
<c:forEach items="${tplist}"  var="type">
<option value="${type.typeId }">${type.typeName }</option>
</c:forEach>
</select><br/>
<input type="submit" value="确定">
</form>
</div>
</body>
</html>